using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace SpaceEngine.Assets
{
    public class Cursor : Quad
    {
        Game1 game;

        public Cursor(Game1 game)
            : base(game,Vector3.Zero,Vector3.Zero,@"Content\Textures\cursor",new Vector2(10,10))
        {
            this.game = game;
        }

        public override void Update(GameTime gameTime)
        {
            rotation.Y -= MathHelper.ToRadians(1f);
            if (rotation.Y < 0)
                rotation.Y += MathHelper.ToRadians(360);

            position = game.input.MousePosition;
            base.Update(gameTime);
        }
    }
}